﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;

namespace BizScore.Model
{
    public class ExamScore
    {

        /// <summary>
        /// 岗位代码
        /// </summary>
        string postID = "";

        /// <summary>
        /// 总分
        /// </summary>
        float total = 0;

        /// <summary>
        /// 第几行
        /// </summary>
        string index = "1";

        /// <summary>
        /// 是否进入面试所填写的坐标（行）
        /// </summary>
        string isPassPosition = "";

        /// <summary>
        /// 那些乱七八糟的数据
        /// </summary>
        Dictionary<string, string> dic = new Dictionary<string, string>();



        /// <summary>
        /// 获得或者设置岗位代码
        /// </summary>
        public string PostID
        {
            get
            {
                return postID;
            }
            set
            {
                postID = value;
            }
        }


        /// <summary>
        /// 获得或者设置这是第几行
        /// </summary>
        public string Index
        {
            get
            {
                return index;
            }
            set
            {
                index = value;
            }
        }


        /// <summary>
        /// 获得或者设置总分
        /// </summary>
        public float Total
        {
            get
            {
                return total;
            }
            set
            {
                total = value;
            }
        }


        /// <summary>
        /// 获得或者设置记录是否进入面试的坐标（行）
        /// </summary>
        public string ISPassPosition
        {
            get
            {
                return isPassPosition;
            }
            set
            {
                isPassPosition = value;
            }
        }


        /// <summary>
        /// 设置内容
        /// </summary>
        /// <param name="key"></param>
        /// <param name="value"></param>
        public void SetDic(string key,string value)
        {
            dic.Add(key, value);
        }


        /// <summary>
        /// 根据key移除某一项
        /// </summary>
        /// <param name="key"></param>
        /// <returns></returns>
        public bool RemoveDic(string key)
        {
            return dic.Remove(key);
        }


        public Dictionary<String,string> GetDic()
        {
            return dic;
        }


    }
}
